<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'runtimePath' => '@runtime',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'assetManager' => [
            'basePath' => '@assets',//physicalPath
            'baseUrl'=>'/assets',//virtualPath
            'bundles' => [
                // you can override AssetBundle configs here
            ],
            //'linkAssets' => true,
            // ...
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'suffix' => '.html',
//            'rules' => [
//                //标准的控制器/方法显示
//                '<lang:[\w-]+>/<controller:[\w-]+>/<action:[\w-]+>'=>'<controller>/<action>'
//            ]
        ],
        'i18n' => [
            'translations' => [
                'common*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@common/messages',
                    'sourceLanguage' => 'en-Us',
                    'fileMap' => [
                        'common' => 'common.php',
                        'app/error' => 'error.php',
                    ],
                ],
                'frontend*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'sourceLanguage' => 'en-US',
                    'basePath' => '@common/messages',
                    'fileMap' => [
                        'frontend' => 'frontend.php',
                    ],
                ],
                'backend*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'sourceLanguage' => 'en-US',
                    'basePath' => '@common/messages',
                    'fileMap' => [
                        'backend' => 'backend.php',
                    ],
                ],
                'app*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'sourceLanguage' => 'en-US',
                    'basePath' => '@common/messages',
                    'fileMap' => [
                        'app' => 'app.php',
                    ],
                ],
            ],
        ],
        //阿里云短信
        'aliyun' => [
            'class' => 'saviorlv\aliyun\Sms',
            'accessKeyId' => 'cbSHCAecxarkyvp6',
            'accessKeySecret' => 'EVZjXkBRaRJr3pnxr8I1FJDNKFneDi'
        ],
    ],
];
